import 'package:flutter/material.dart';
import 'package:ytbusiness/config/yt_theme.dart';
import 'package:ytbusiness/utils/screen_adaptation.dart';
import 'package:ytbusiness/widgets/widgets.dart';

class ModifySuccess extends StatefulWidget {
  @override
  _ModifySuccessState createState() => _ModifySuccessState();
}

class _ModifySuccessState extends State<ModifySuccess> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: customAppBar(context,title: "修改成功",elevation: 0.5),
      body: Container( // modifySuccess_image.png
        color: Colors.white,
        width: setWidth(375),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            SizedBox(
              height: setWidth(40),
            ),
            Image.asset(
              'assets/images/modifySuccess_image.png',
              width: setWidth(100),
              height: setWidth(100),
              fit: BoxFit.fill,
            ),
            SizedBox(
              height: setWidth(22),
            ),
            Text(
              '修改手机号成功',
              style: TextStyle(
                color: Color(0xff333333),
                fontSize: setSp(15),
                  fontWeight: FontWeight.w500

              ),
            ),
            SizedBox(
              height: setWidth(10),
            ),
            Text(
              '当前绑定手机号：10086',
              style: TextStyle(
                color: Color(0xff333333),
                fontSize: setSp(12),
              ),
            ),
            SizedBox(
              height: setWidth(40),
            ),
            InkWell(
              onTap: () {
                Navigator.of(context).pop();
              },
              child: Container(
                margin: EdgeInsets.symmetric(horizontal: setWidth(15)),
                decoration: BoxDecoration(
                  color: YTTheme.theme,
                  borderRadius: BorderRadius.circular(setWidth(5)),
                ),
                height: setWidth(44),
                alignment: Alignment.center,
                child: Text(
                  '确定',
                  style: TextStyle(
                    color: Colors.white,
                    fontSize: setSp(15),
                  ),
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
